from tkinter import *
 
root = Tk()
root.title('МногоУгольник')
root.geometry('500x500')
 
canvas = Canvas(bg="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)

coords = [0,0,10,0,10,10,20,10,20,30,10,30,10,20,0,20]
canvas.create_polygon(coords[0], coords[1],
 coords[2], coords[3],
 coords[4], coords[5],
 coords[6], coords[7],
 coords[8], coords[9],
 coords[10], coords[11],
 coords[12], coords[13],
 coords[14], coords[15], fill='DarkBlue')
root.mainloop()
